package com.lz.yz.reward.web;
import com.lz.yz.reward.entity.Resident;
import com.lz.yz.reward.service.ResidentService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import com.lz.yz.base.entity.ReturnValue;

import javax.annotation.Resource;
import java.util.List;

/**
* Created by CodeGenerator on 2017/11/10.
*/
@RestController
@RequestMapping("/resident")
public class ResidentController {
    @Resource
    private ResidentService residentService;

    @ApiOperation(value="发布大咖入驻",response = ReturnValue.class)
    @PostMapping
    public ReturnValue add(@RequestBody Resident resident) {
        residentService.save(resident);
        return ReturnValue.generateTrueReturnValue();
    }

}
